-- GENERATED SPELL FOR [Bonechewer Destroyer] --


function spell0_17271(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17271', 575, 1)
end

function spell1_17271(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17271', 5285, 1)
end

function Sorts_17271(pUnit, Event)
local choix_sorts_17271 = math.random(0, 1)
if choix_sorts_17271 == 0 then
pUnit:RegisterEvent('spell0_17271', 1, 1)
end
if choix_sorts_17271 == 1 then
pUnit:RegisterEvent('spell1_17271', 1, 1)
end
end

function mob17271_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17271', math.random(1500, 3000), 1)
end

function mob17271_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17271_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17271_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17271, 1, 'mob17271_Action')
RegisterUnitEvent(17271, 2, 'mob17271_Leave')
RegisterUnitEvent(17271, 3, 'mob17271_Kill')
RegisterUnitEvent(17271, 4, 'mob17271_Die')
